#!/usr/bin/env node

//采用async和await动态导入chalk模块
(async () => {
    const chalk=await import('chalk').default;
    const log=console.log;
    const Circle=require('./04-export-object.js');
    const green=chalk.green;

    const circle = new Circle(10);

    log(green(`area:           ${circle.area}`));
    log(green(`diameter:       ${circle.diameter}`));
    log(green(`circumference:  ${circle.circumference}`));
    log(module);


})();

